Added missing global statement, to ensure that the logfilename variable is
authoremellor@ewan <emellor@ewan>
Tue, 11 Oct 2005 09:33:31 +0000 (10:33 +0100)
committeremellor@ewan <emellor@ewan>
Tue, 11 Oct 2005 09:33:31 +0000 (10:33 +0100)
updated.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendLogging.py

index 9c78f922365d265ec3797f8d85c032278e52c75b..8e54d94bf1fce97d4ffebd16e587fb8d8934ff7c 100644 (file)
@@ -49,6 +49,8 @@ def init(filename, level=logging.INFO, maxBytes=None, backupCount=None):
     stderr unless addLogStderr() is called.
     """
 
+    global logfilename
+
     def openFileHandler(fname):
         return logging.handlers.RotatingFileHandler(fname,
                                                     mode='a',